import allure

from base.base_page import BasePage
from locator.author_area_page_loc import *


class AuthorAreaPage(BasePage):
    @allure.step("切换窗口")
    def change_to_author_window(self):
        self.change_window(1)

    @allure.step("获取提交按钮文字")
    def get_commit_btn_text(self):
        txt = self.get_attribute_value_text(commit_btn_loc)
        return txt
